<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
          name="viewport">

    <title>售后处理</title>
    <link rel="stylesheet" href="../css/base.css">

    <script src="../js/jquery-1.8.3.min.js"></script>
    <script src="../js/public.js"></script>
</head>
<style>
    body{
        padding: 0 10px;
        box-sizing: border-box;
        background: #fff;
    }
    .ti{
        color: #5F3104;
        font-size: 12px;
        line-height: .66rem;
    }
    .footer-brn{
        text-align: center;
        background: #5F3104;
        color: #fff;
        font-size: 14px;
        border-radius: 4px;
        line-height: .66rem;
        margin-top: .8rem;
    }
</style>
<script>
    $(function (){
        $("#code").val(GetQueryString('code'))
        $("#price").text(GetQueryString('price'));

    })
    function trwc(){
        if(isNull($("#code").val())){
            alert("请填写物流单号");
            return false;
        }
        $.ajax({
            url:base_url+"ZITAOHUI/saveReturnInformation",
            type:"post",
            data:{
                order_id:GetQueryString('oid'),
                trackNum:$("#code").val()
            },
            success:function (data){
                if(data.code == 1){
                    alert("提交成功");
                    window.history.back();
                }
            }

        })


    }
</script>
<body>
    <div class="ti">
        退款类型
    </div>
<div class="ti-s" style="color: #333;">
    我要退款和退货
</div>
    <div class="ti">
        退款金额
    </div>
    <div id="price" class="ti-s" style="color: #333;">

    </div>
<div class="ti" >
    物流单号
</div>
<div>
    <input type="text" id="code" style="border: none;width: 100%;" placeholder="请输入物流单号">
</div>
<div class="footer-brn" onclick="trwc()">
    完成
</div>
</body>
</html>